package com.sg.dto.biz.bff.res;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffOrgClassDto
 * @使用场景
 */
@Data
public class BffOrgClassDto implements Serializable {

    /**
     * 类型字典ID:
     */
    @ApiModelProperty("类型字典ID")
    private String typeDictionaryId;

    /**
     * 类型字典编码:
     */
    @ApiModelProperty("类型字典编码")
    private String typeDictionaryCode;

    /**
     * 类型字典名称:
     */
    @ApiModelProperty("类型字典名称")
    private String typeDictionaryName;
    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 主题标识
     */
    @ApiModelProperty("主题标识")
    private String themeCode;

    /**
     * 是否系统数据 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否系统数据")
    private String isSystemData;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffOrgClassDto that = (BffOrgClassDto) o;
        return typeDictionaryId == that.typeDictionaryId && typeDictionaryCode == that.typeDictionaryCode && typeDictionaryName == that.typeDictionaryName && orderNumber == that.orderNumber && subjectLifeCycle == that.subjectLifeCycle && operateTime == that.operateTime && themeCode == that.themeCode && isSystemData == that.isSystemData;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), typeDictionaryId, typeDictionaryCode, typeDictionaryName, orderNumber, subjectLifeCycle, operateTime, themeCode, isSystemData);
    }
}
